#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QGLWidget>
#include "ui_dialog.h"
#include "sdocument.h"

#define DLL_SPEC extern "C" __declspec (dllexport)

DLL_SPEC void PrepareImage();
DLL_SPEC void InitMenu(QMenu* menu,QAction** action,QString& funcName);
DLL_SPEC void InitPointers(ImageDocument* currentDocument);


class GLWidget : public QGLWidget
{
    Q_OBJECT
public:
    QImage image1;
    QImage image2;
    QImage image3;
    GLWidget(QWidget *parent = NULL);
    int step;
protected:
    void paintEvent(QPaintEvent *event);
};


class Dialog : public QDialog, public Ui::dlgMoveFill {
    Q_OBJECT
public:
    Dialog(QWidget *parent = 0);
private:
    GLWidget* gl;
    bool isRunning;
    int waitTime;
private slots:
    void on_sbLineCount_valueChanged(int );
    void on_pbStop_clicked();
    void on_pbStart_clicked();
};

#endif // DIALOG_H



